package com.shop.mms_client.ui;

import android.os.Bundle;
import androidx.lifecycle.ViewModelProvider;
import com.shop.mms_client.viewmodel.MessageViewModel;

public class SpamMessagesFragment extends BaseMessageFragment {
    private MessageViewModel viewModel;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        viewModel = new ViewModelProvider(requireActivity()).get(MessageViewModel.class);
        viewModel.getSpamMessages().observe(this, this::updateMessages);
    }
} 